package account.impl;

import java.util.ArrayList;
import java.util.List;

import card.ICard;
import user.IUser;
import account.IAccount;
import account.status.IStatus;

public class Account implements IAccount {
	//init block
	{
		cards = new ArrayList<ICard>();
	}
	private Long id;
	private IUser user;
	private Long sum;
	private IStatus status;
	private List<ICard> cards;

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setUser(IUser user) {
		this.user = user;
	}

	@Override
	public IUser getUser() {
		return user;
	}

	@Override
	public void setSum(Long sum) {
		this.sum = sum;
	}

	@Override
	public Long getSum() {
		return sum;
	}

	@Override
	public void setStatus(IStatus status) {
		this.status = status;
	}

	@Override
	public IStatus getStatus() {
		return status;
	}

	@Override
	public void setCards(List<ICard> cards) {
		this.cards = cards;

	}

	@Override
	public List<ICard> getCards() {
		return cards;
	}

	@Override
	public void addCard(ICard card) {
		if (this.cards == null)
			this.cards = new ArrayList<ICard>();
		cards.add(card);
	}

}
